﻿@model AlmKickstart.Data.Project
@{
    ViewBag.Title = "Create";
}

<h2>Create @Model.ProjectType.Name</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <div class="ContentSection">
		<h3>Item Details</h3>
		@Html.HiddenFor(model => model.ParentProjectId)
		@Html.HiddenFor(model => model.ProjectTypeId)
        <div class="EditorElement">
            @Html.LabelFor(model => model.Name)
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="EditorElement">
            @Html.LabelFor(model => model.StartDate)
            @Html.EditorFor(model => model.StartDate)
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

        <div class="EditorElement">
            @Html.LabelFor(model => model.DueDate)
            @Html.EditorFor(model => model.DueDate)
            @Html.ValidationMessageFor(model => model.DueDate)
        </div>

        <div class="EditorElement">
            @Html.LabelFor(model => model.StatusId, "Status")
            @Html.DropDownList("StatusId", String.Empty)
            @Html.ValidationMessageFor(model => model.StatusId)
        </div>

		<div class="EditorElement">
            @Html.LabelFor(model => model.Description)
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Save" class="k-button" />
        </p>
    </div>
}
